package com.lovo.homework.bean;

import java.time.LocalDate;

/*
* 编号  主键，自动增长列
用户名    字符型
密码   字符型
生日   日期型
等级   枚举型（普通用户、管理员、超级用户）*/
public class UserBean {
    //id
  private int id;
  //用户名
    private String name;
    //密码
    private String psw;
    //生日
    private LocalDate birthday;
    //等级
    private String level;

    public UserBean() {
    }

    public UserBean(String name, String psw, LocalDate birthday, String level) {
        this.name = name;
        this.psw = psw;
        this.birthday = birthday;
        this.level = level;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", psw='" + psw + '\'' +
                ", birthday=" + birthday +
                ", level='" + level + '\'' +
                '}'+"\n";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
